package com.my.webhr.pro.service.Impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.my.webhr.pro.mapper.HrMapper;
import com.my.webhr.pro.pojo.Hr;
import com.my.webhr.pro.service.HrService;
@Service
public class HrServiceImpl implements HrService {
	@Autowired
	private HrMapper hrMapper;
	@Override
	public Hr login(Hr hr) {
		return hrMapper.selectOne(hr);
	}
	@Override
	public int deleteOne(int hrId) {
		return hrMapper.deleteByPrimaryKey(hrId);
	}
	@Override
	public int modifyOne(Hr hr) {
		return hrMapper.updateByPrimaryKeySelective(hr);
	}
	@Override
	public int updateOne(Hr hr) {
		return hrMapper.insert(hr);
	}
	@Override
	public Hr selectSame(Hr hr) {
		return hrMapper.selectSame(hr);
	}

}
